package model

const (
	UserNormal   = 0
	UserDisabled = 1
	UserDeleted  = 2
)

type Employee struct {
	BaseModel
	Name         string `json:"name"`
	Phone        string `json:"phone"`
	Sex          uint8  `json:"sex"`
	Age          uint8  `json:"age"`
	State        int8   `json:"state"`      //参考user state const
	AuthState    int    `json:"auth_state"` //认证状态 0-未认证 1-已认证
	Memo         string `json:"memo"`
	DepartmentId int    `json:"department_id"`
	CompanyId    int    `json:"company_id"`
	AppId        string `json:"app_id"`
}

func (s *Employee) TableName() string {
	return "is_employee"
}

type User struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}
